home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / WindowClickEditor.h < prev    next >
Text File  |  1996-12-24  |  2KB  |  81 lines

  1. /*
  2.  *  File:       WindowClickEditor.h
  3.  *  Summary:       A view that knows how to edit a TWindow's clicking info.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->    12/24/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZControl.h>
  17. #include <ZListener.h>
  18. #include <ZWindow.h>
  19.  
  20. #include "BasePaneEditor.h"
  21.  
  22.  
  23. // ===================================================================================
  24. //    class CEditWindowClickCommand
  25. // ===================================================================================
  26. class CEditWindowClickCommand : public CBaseEditPaneCommand<TWindow, SWindowInfo> {
  27.  
  28.     typedef CBaseEditPaneCommand<TWindow, SWindowInfo> Inherited;
  29.  
  30. //-----------------------------------
  31. //    Initialization/Destruction
  32. //
  33. public:
  34.     virtual             ~CEditWindowClickCommand();
  35.     
  36.                         CEditWindowClickCommand(TWindow* pane, const SWindowInfo& oldInfo, const SWindowInfo& newInfo);
  37.     
  38. //-----------------------------------
  39. //    Inherited API
  40. //
  41. public:
  42.     virtual    void         UpdatePane(const SWindowInfo& newInfo);
  43. };
  44.  
  45.  
  46. // ===================================================================================
  47. //    CWindowClickEditor
  48. // ===================================================================================
  49. class CWindowClickEditor : public CBasePaneEditor<TWindow, SWindowInfo, CEditWindowClickCommand>, public MListener<SControlMessage> {
  50.  
  51.     typedef CBasePaneEditor<TWindow, SWindowInfo, CEditWindowClickCommand> Inherited;
  52.     
  53. //-----------------------------------
  54. //    Initialization/Destruction
  55. //
  56. public:
  57.     virtual                ~CWindowClickEditor();
  58.                         
  59.                         CWindowClickEditor(TView* superView);
  60.  
  61. //-----------------------------------
  62. //    Inherited API
  63. //
  64. protected:
  65.     virtual SWindowInfo GetEditorInfo() const;
  66.             
  67.     virtual void         SetEditorInfo(const SWindowInfo& info);
  68.                         
  69.     virtual void         OnReanimated();
  70.  
  71.     virtual void         OnBroadcast(const SControlMessage& mesg);
  72.  
  73. //-----------------------------------
  74. //    TReanimator Support
  75. //
  76. public:
  77.     static     MReanimatable* Create(MReanimatable* parent);
  78. };
  79.  
  80.  
  81.